﻿using DDD.Domain.IRepository;
using DDD.Domain.Model;

namespace DDD.Application.Services
{
    public interface IStudentService : IBaseService<Student>
    {
        void Insert(Student Model);
    }

    public class StudentService : BaseService<Student>, IStudentService
    {
        private IStudentRepository repo;

        public StudentService(IStudentRepository _IStudentRepository)
               :base(_IStudentRepository)
        {
            repo = _IStudentRepository;
        }
        void IStudentService.Insert(Student Model)
        {
            repo.Add(Model);
        }
    }
}
